import http from "@/utils/request";
//封装项目的请求
/*  登录相关的请求  */

// 登录请求
function loginRequest(userName, password){
   return http({
    method: "post",
    url: "/api/v1/auth/manager_login",
    data: { userName, password },
   })
}

// 获取管理员信息
function getManagerRequest(){
    return http({
     method: "get",
     url: "/api/v1/auth/manager_info",
     data: {},
    })
 }


export {  loginRequest, getManagerRequest};